package com.zhentao.model.common.business.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 
 * @TableName business_good
 */
@TableName(value ="business_good")
@Data
public class BusinessGood implements Serializable {
    /**
     * 商品表
     */
    @TableId(value = "good_id", type = IdType.AUTO)
    private Integer goodId;

    /**
     * 商品名字
     */
    @TableField(value = "good_name")
    private String goodName;

    /**
     * 商品价格
     */
    @TableField(value = "price")
    private BigDecimal price;

    /**
     * 商品表述
     */
    @TableField(value = "good_description")
    private String goodDescription;

    /**
     * 数量
     */
    @TableField(value = "good_count")
    private Integer goodCount;

    /**
     * 商品类型
     */
    @TableField(value = "good_type_id")
    private Integer goodTypeId;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GTM+8")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GTM+8")
    private Date updateTime;

    /**
     * 审核状态（待审核0 
 审核通过1  审核拒绝2 人工审核3  人工审核成功4  人工审核失败5）
     */
    @TableField(value = "good_shen")
    private Integer goodShen;

    /**
     * 是否上架(上架1  下架2  未上架0)
     */
    @TableField(value = "good_isup")
    private Integer goodIsup;

    /**
     * 商品详情图片
     */
    @TableField(value = "good_images")
    private String goodImages;

    /**
     * 商品详情页面
     */
    @TableField(value = "good_url")
    private String goodUrl;

    /**
     * 商家ID
     */
    @TableField(value = "shop_id")
    private Integer shopId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}